//
//  DDChargeNumberCell.m
//  DingDongZP
//
//  Created by weily on 16/5/11.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDChargeNumberCell.h"

@implementation DDChargeNumberCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    if (self.didGetNumber) {
        self.didGetNumber(textField.text);
    }
    return YES;
}

- (void)textFieldDidEndEditing:(UITextField *)textField
{
    if (self.didGetNumber) {
        self.didGetNumber(textField.text);
    }
}

@end
